﻿using ManyToManyEntityFramework.Model;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace ManyToManyEntityFramework.Models
{
    public class StudentIndexViewModel
    {
        public int StudentId { get; set; }

        [Display(Name = "Student Name")]
        public string Name { get; set; }
        public Grade grade { get; set; }
        public List<CourseViewModel> StudentCourses { get; set; }
    }
}

//Objective: Display all of our students on index page,
//along with all of the courses the student is taking